/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.lodz.p.ftims.ProjektZespolowy2.endpoint;

import java.util.List;

import javax.ejb.Local;

import pl.lodz.p.ftims.ProjektZespolowy2.entities.Role;
import pl.lodz.p.ftims.ProjektZespolowy2.entities.User;

/**
 *
 * @author Łukasz Gadomski
 */
@Local
public interface EndpointLocal {
    
	User getUserByPesel(Integer pesel);
	
	List<Role> getRolesList();
	
	String registerNewUser(User newUser);

	boolean checkPasswordForUser(Integer pesel, String password);
	
	
}
